/*
package com.hello.config;

import com.mongodb.Mongo;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.authentication.UserCredentials;
import org.springframework.data.mongodb.core.MongoTemplate;

@Configuration
public class DataConfig{
    @Bean
    public Mongo mongo() throws Exception {
        return new Mongo("localhost", Integer.parseInt("27017"));
    }

    @Bean
    public MongoTemplate mongoTemplate() throws Exception {
        return new MongoTemplate(mongo(),"central",new UserCredentials("",""));
    }
}
*/
